package com.wuyu.mini.dubbo.registry;

import com.wuyu.mini.dubbo.cluster.config.Config;
import com.wuyu.mini.dubbo.cluster.loader.MiniExtensionLoader;

/**
 * 服务注册工程
 */
public class RegistryFactory {
    public static Registry getRegistry() {
        String protocol = Config.Registry.protocol;
        Registry extension = MiniExtensionLoader.getExtensionLoader(Registry.class).getExtension(protocol);
        return extension;
    }
}
